Align with bootc's validate target:
- Make cargo clippy gating (was "non-gating") with the same lint config
as bootc (-A clippy::all -D clippy::correctness -D clippy::suspicious
-Dunused_imports -Ddead_code)
- Extend clippy to cover test crates (tests/inst, tests/bootc-integration,
tests/xtask)
- Add cargo doc with -D warnings to catch rustdoc issues
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Signed-off-by: Xiaofeng Wang <henrywangxf@me.com>
run: cargo build --verbose --features=${{ env['CARGO_PROJECT_FEATURES'] }}
- name: Run tests
run: cargo test --verbose --features=${{ env['CARGO_PROJECT_FEATURES'] }}
- - name: cargo clippy (non-gating)
- run: cargo clippy -p ostree --features=${{ env['CARGO_PROJECT_FEATURES'] }}
+ - name: cargo clippy
+ run: |
+ CLIPPY_CONFIG="-A clippy::all -D clippy::correctness -D clippy::suspicious -Dunused_imports -Ddead_code"
+ cargo clippy -p ostree --features=${{ env['CARGO_PROJECT_FEATURES'] }} -- $CLIPPY_CONFIG
+ for d in tests/inst tests/bootc-integration tests/xtask; do
+ cargo clippy --manifest-path $d/Cargo.toml -- $CLIPPY_CONFIG
+ done
+ - name: cargo doc
+ run: env RUSTDOCFLAGS='-D warnings' cargo doc --lib -p ostree --features=${{ env['CARGO_PROJECT_FEATURES'] }}
build-no-features:
runs-on: ubuntu-latest
container: quay.io/coreos-assembler/fcos-buildroot:testing-devel